// https://pinia.vuejs.org/zh/introduction.html
import {defineStore} from 'pinia'

const useMenuStore = defineStore('menuApp', {
    state: () => {
        return {
            collapse: false
        }
    },
    persist: true,
    getters: {
        width(): string {
            return this.collapse ? '64px' : '200px'
        }
    },
})
export default useMenuStore
